<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>drag</title>
		<style>
			.container {
				width: 300px;
				height: 300px;
				background-color: yellow;
			}
		</style>
	</head>
	<body>
		<div class="container" draggable="true"></div>

		<script>
			const cont = document.querySelector('.container');

			// cont.onmouseenter = function (e) {
			// 	console.log(e);
			// 	cont.style.cursor = 'pointer';
			// };

			cont.addEventListener('dragstart', (e) => {
				console.log('dragstart', e);
			});
		</script>
	</body>
</html>
